package com.hgx.springcloud.orderfeignhystrix.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "CLOUD-PAYMENT-SERVICE-HYSTRIX",fallback = PaymentFallBackService.class)
public interface IPaymentHystrixService {

    @GetMapping("/payment/ok/{id}")
    public String ok(@PathVariable("id") String id) ;


    @GetMapping("/payment/timeout/{id}")
    public String timeout(@PathVariable("id") String id) ;

}
